//
//  EAGLView.h
//  FrameBufferObject
//
//  Created by 畑圭輔 on 10/03/07.
//  Copyright Keisuke Hata 2010. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>

#import "ESRenderer.h"
#import "Chara.h"

@interface EAGLView : UIView
{    
@private
	id <ESRenderer> renderer;
	
	BOOL		animating;
	BOOL		displayLinkSupported;
	NSInteger	animationFrameInterval;
	
	// iPhone OS3.1から利用できるDisplayLinkについて
	id			displayLink;
    NSTimer		*animationTimer;
	BrushSprite *brush;
	
	BOOL		snapshotting;
}

@property (readonly, nonatomic, getter=isAnimating) BOOL animating;
@property (nonatomic)	NSInteger animationFrameInterval;
@property (readonly,nonatomic,assign) NSMutableDictionary *renderTargets;

- (void) startAnimation;
- (void) stopAnimation;
- (void) drawView:(id)sender;

@end
	